/*
 * Copyright (c) 2012,东方口岸科技有限公司
 * All rights reserved.
 * 文件名称：NodeMapper.java
 * 摘    要：
 * 版本：1.0
 * 作    者：fengzhiyong
 */
package com.cneport.transfer.router.support.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cneport.transfer.router.model.Node;
import com.cneport.transfer.router.support.mapper.NodeMapper;

@Service
public class NodeService {
    /**
     *@CreateDate:2012-6-12
     *@Description:
     */
    @Autowired
    private NodeMapper nodeMapper;

    public List<Node> queryNodeListService(String nodeId) {
        return nodeMapper.queryNodeList(nodeId);
    }
    
    public List<Node> getNodeListService(Node node) {
        return nodeMapper.getNodeList(node);
    }
    
    
    public int getNodeTotalCount(Node node) {
        return nodeMapper.getNodeTotalCount(node);
    }

    public int insertNodeService(Node node) {
        return nodeMapper.insertNode(node);
    }

    public int deleteNodeService(String nodeId) {
        return nodeMapper.deleteNode(nodeId);
    }

    public int updateNodeService(Node node) {
        return nodeMapper.updateNode(node);
    }
    
    public Node getNode(String nodeId){
        return nodeMapper.getNode(nodeId);
    }
    public Node getparentId(String nodeId){
        return nodeMapper.getparentId(nodeId);
    }
    public List<Node> queryChildrenNodeList(String nodeId){
        return nodeMapper.queryChildrenNodeList(nodeId);
    }
    
    public List<Node> getNodeAllByTypeId(String inputValue) {
        return nodeMapper.getNodeAllByTypeId(inputValue);
    }
}
